/**
 * @file
 * @author  Tsin Smith <tsin.creator@gmail.com>
 *
 * @section DESCRIPTION
 *
 */

#ifndef __TSIN_LIBRARY_BULLETDIEOUTEVENT_HPP__
#define __TSIN_LIBRARY_BULLETDIEOUTEVENT_HPP__

#include <tsin/library/common.hpp>
#include <tsin/library/BulletEvent.hpp>

namespace tsin {

        class LIBRARY_DLLEXPORT BulletDieOutEvent : public BulletEvent {
        public:
                BulletDieOutEvent(bool d = false);

                virtual DynamicObject *copy();

                void init(float glacis = 0.0f);
                virtual void reinit ();

                virtual bool trigger(BulletRuntime &bullet, void *data = 0);
                virtual BulletEvent *handle(BulletRuntime &bullet, void *data = 0);

        private:
                float glacis;
        };

}

extern "C" LIBRARY_DLLEXPORT tsin::DynamicObject *bindDieOutEvent();

#endif /* __TSIN_LIBRARY_BULLETDIEOUTEVENT_HPP__ */
